package com.entrogy.service.impl;

import com.entrogy.bean.AttendancePeople;
import com.entrogy.dao.AttendancePeopleMapper;
import com.entrogy.service.AttendancePeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/** 考勤人员service接口
 * @Author 许红松
 * @date 2019/5/10 0010 下午 3:29
 */
@Service("attendancePeopleService")
public class AttendancePeopleServiceImpl implements AttendancePeopleService {


    @Autowired
    private AttendancePeopleMapper attendancePeopleMapper;//考勤人员dao接口

    /**
     *  批量新增
     * @param list
     * @return
     */
    @Override
    public  int  addAttendancePeople(List<AttendancePeople> list){
        return attendancePeopleMapper.addAttendancePeople(list);
    };
    /**
     *  批量修改
     * @param list
     * @return
     */
    @Override
    public  int  updateAttendancePeople(List<AttendancePeople> list){
        return attendancePeopleMapper.updateAttendancePeople(list);
    };
    /**
     *  批量修改
     * @param attendance_Id
     * @return
     */
    @Override
    public  int  deleteAttendancePeople(String attendance_Id){
        return attendancePeopleMapper.deleteAttendancePeople(attendance_Id);
    };

    /**
     *  获取信息
     * @return
     */
    @Override
    public  List<AttendancePeople>  getAttendancePeopleList(Map<String,Object> map){
        return attendancePeopleMapper.getAttendancePeopleList(map);
    };

    /**
     *  获取用户集合
     * @return
     */
    @Override
    public  List<String>  getPeopleList(Map<String,Object> map){
        return attendancePeopleMapper.getPeopleList(map);
    };
}
